package com.furongji.education.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户登录日志表
 * </p>
 *
 * @author furongji
 * @since 2025-06-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("login_log")
@Schema(description = "用户登录日志表")
public class LoginLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "用户ID")
    private String userId;

    @Schema(description = "IP地址")
    private String ipAddress;

    @Schema(description = "User-Agent信息")
    private String userAgent;

    @Schema(description = "登录时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime loginTime;

}
